using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.tuangou.tuangouReceiptReverseconsume
{
    /// <summary>
    /// 验券结果
    /// </summary>
    public class ReceiptConsumeResult
    {
        /// <summary>
        /// 订单号
        /// </summary>
        [JsonPropertyName("orderId")]
        public string OrderId { get; set; }

        /// <summary>
        /// 券码
        /// </summary>
        [JsonPropertyName("receiptCode")]
        public string ReceiptCode { get; set; }

        /// <summary>
        /// 套餐ID
        /// </summary>
        [JsonPropertyName("dealId")]
        public long? DealId { get; set; }

        /// <summary>
        /// 团购ID
        /// </summary>
        [JsonPropertyName("dealgroupId")]
        public long? DealgroupId { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [JsonPropertyName("dealTitle")]
        public string DealTitle { get; set; }

        /// <summary>
        /// 商品售卖价格
        /// </summary>
        [JsonPropertyName("dealPrice")]
        public double? DealPrice { get; set; }

        /// <summary>
        /// 商品市场价
        /// </summary>
        [JsonPropertyName("dealMarketPrice")]
        public double? DealMarketPrice { get; set; }

        /// <summary>
        /// 用户手机号
        /// </summary>
        [JsonPropertyName("mobile")]
        public string Mobile { get; set; }

        public override string ToString()
        {
            return $"ReceiptConsumeResult{{OrderId={OrderId}, ReceiptCode={ReceiptCode}, DealId={DealId}, DealgroupId={DealgroupId}, DealTitle={DealTitle}, DealPrice={DealPrice}, DealMarketPrice={DealMarketPrice}, Mobile={Mobile}}}";
        }
    }
}
